<?php
if(mb_strlen($name) < 4 or mb_strlen($name) > 30)
{
    $_POST['error']['name'] = TRUE;
}
?>